package com.yanqu.road.server.manger.config.grandchild.talent.entity;

import java.util.ArrayList;
import java.util.List;

public class TalentTriggerResult {

    private int talentId;

    private List<TalentTriggerSkillResult> skillResultList = new ArrayList<>();


    public List<TalentTriggerSkillResult> getSkillResultList() {
        return skillResultList;
    }

    public void setSkillResultList(List<TalentTriggerSkillResult> skillResultList) {
        this.skillResultList = skillResultList;
    }

    public int getTalentId() {
        return talentId;
    }

    public void setTalentId(int talentId) {
        this.talentId = talentId;
    }

    public boolean isActive() {
        for (TalentTriggerSkillResult result : skillResultList) {
            if (result.isActive()) {
                return true;
            }
        }
        return false;
    }
}
